package com.demo.dao;

import java.util.List;

import com.demo.model.User;


public interface UserDAO {
	/**
     * 添加新用户
     * @param user
     * @return
     */
//    public int insertUser(User user);
//    public List<User> selectUser();
	public int insertUser(User user);
	public List<User> selectAllUsers();
	public User selectUser(int id);
	public void updateUser(User user);
	public void deleteUser(int id);
	public User selectUserByName(String userName,String password);
	public void assignRole(int id, String role);
}
